package com.junhong.action;

import javax.annotation.Resource;

import com.junhong.entity.Student;
import com.junhong.service.StudentService;

public class StudentUpdateAction {
	private Integer id;
	private String name;// 学生名字
	private String sex;// 性别
	private String classs;// 班级
	private String birth;// 出生年月
	private String phone;// 电话
	private String mail;// 邮箱

	@Resource
	private StudentService studentService;

	public void update() {
		Student student = new Student(id, name, sex, classs, birth, phone, name);
		studentService.update(student);
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getSex() {
		return sex;
	}

	public void setSex(String sex) {
		this.sex = sex;
	}

	public String getClasss() {
		return classs;
	}

	public void setClasss(String classs) {
		this.classs = classs;
	}

	public String getBirth() {
		return birth;
	}

	public void setBirth(String birth) {
		this.birth = birth;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getMail() {
		return mail;
	}

	public void setMail(String mail) {
		this.mail = mail;
	}

}
